package utils
{
	public class NameConvertor
	{
		public function NameConvertor()
			{
			super();
		}
		public static function shortName2LongName(name:String):String{
			switch(name){
				case "tbox": return "Text Box";
				case "gmap": return "Google Maps";
				case "ymap": return "Yahoo! Maps";
				case "flk": return "Flickr";			
			}
			return "unknown service name";
		}
		public static function longName2shortname(name:String):String{
			switch(name){
				case "Text Box": return "tbox";
				case "Google Maps": return "gmap";
				case "Yahoo! Maps": return "ymap";
				case "Flickr": return "flk";
			}
			return "unknown service code";
		}

	}
}